$(document).ready(function() {
	$('.AnswerPraise').click(function() {
		var id=$(this).attr("id");
		$.ajax({
			url: '/AnswerPraise/',
			type: 'GET',
			dataType: 'json',
			data: {id: id},
			success:function(callback){
				$('#'+id+'.Praise').html(callback.info);
			}
		});
		
	});
	$('.AnswerOppose').click(function() {
		var id=$(this).attr("id");
		$.ajax({
			url: '/AnswerOppose/',
			type: 'GET',
			dataType: 'json',
			data: {id: id},
			success:function(callback){
				$('#'+id+'.Oppose').html(callback.info);
			}
		});
		
	});
});

function QuestionPraise(){
	var id=$('.QuestionOpperation').attr("id");
	$.ajax({
		url: '/QuestionPraise/',
		type: 'GET',
		dataType: 'json',
		data: {id: id},
		success:function(callback){
			$('#QuestionPraise').html(callback.info);
		}
	});
}

function QuestionOppose(){
	var id=$('.QuestionOpperation').attr("id");
	$.ajax({
		url: '/QuestionOppose/',
		type: 'GET',
		dataType: 'json',
		data: {id: id},
		success:function(callback){
			$('#QuestionOppose').html(callback.info);
		}
	});
}

function likeit(){
	var id=$('.QuestionOpperation').attr("id");
	$.ajax({
		url: '/likeit/',
		type: 'GET',
		dataType: 'json',
		data: {id:id},
		success:function(callback){
			alert(callback.info);
		}
	})
}